var G = "/",
    C = location.href,
    H, D, B, F;
I();

function loophalaman(banyakdata) {
    var html = "";
    nomerkiri = parseInt(num / 2);
    if (nomerkiri == num - nomerkiri) {
        num = nomerkiri * 2 + 1;
    }
    mulai = B - nomerkiri;
    if (mulai < 1) {
        mulai = 1;
    }
    maksimal = parseInt(banyakdata / posts) + 1;
    if (maksimal - 1 == banyakdata / posts) {
        maksimal = maksimal - 1;
    }
    akhir = mulai + num - 1;
    if (akhir > maksimal) {
        akhir = maksimal;
    }
    html += "<span class='pages'>Page " + B + " of " + maksimal + "</span>";
    var prevnomer = parseInt(B) - 1;
    if (B > 1) {
        if (B == 2) {
            if (D == "page") {
                html += "<a href=\"" + G + "\">" + previous + "</a>";
            } else {
                html += "<a href=\"/search/label/" + F + "?&max-results=" + posts + "\">" + previous + "</a>";
            }
        } else if (D == "page") {
            html += "<a href=\"#\" onclick=\"redirectpage(" + prevnomer + ");return false\">" + previous + "</a>";
        } else {
            html += "<a href=\"#\" onclick=\"redirectlabel(" + prevnomer + ");return false\">" + previous + "</a>";
        }
    }
    for (var jj = mulai; jj <= akhir; jj++) {
        if (B == jj) {
            html += "<span class=\"current\">" + jj + "</span>";
        } else if (jj == 1) {
            if (D == "page") {
                html += "<a href=\"" + G + "\">1</a>";
            } else {
                html += "<a href=\"/search/label/" + F + "?&max-results=" + posts + "\">1</a>";
            }
        } else if (D == "page") {
            html += "<a href=\"#\" onclick=\"redirectpage(" + jj + ");return false\">" + jj + "</a>";
        } else {
            html += "<a href=\"#\" onclick=\"redirectlabel(" + jj + ");return false\">" + jj + "</a>";
        }
    }
    var nextnomer = parseInt(B) + 1;
    if (B < maksimal) {
        if (D == "page") {
            html += "<a href=\"#\" onclick=\"redirectpage(" + nextnomer + ");return false\">" + next + "</a>";
        } else {
            html += "<a href=\"#\" onclick=\"redirectlabel(" + nextnomer + ");return false\">" + next + "</a>";
        }
    }
    var pageArea = document.getElementsByName("pageArea");
    var blogPager = document.getElementById("blog-pager");
    for (var p = 0; p < pageArea.length; p++) {
        pageArea[p].innerHTML = html;
    }
    if (pageArea && pageArea.length > 0) {
        html = "";
    }
    if (blogPager) {
        blogPager.innerHTML = "<div class=\"pagenavi-box\"><div class=\"pagenavi\">" + html + "</div></div>";
    }
}

function hitungtotaldata(root) {
    var feed = root.feed;
    var totaldata = parseInt(feed.openSearch$totalResults.$t, 10);
    loophalaman(totaldata);
}

function I() {
    var thisUrl = C;
    if (thisUrl.indexOf("/search/label/") != -1) {
        if (thisUrl.indexOf("?updated-max") != -1) {
            F = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?updated-max"));
        } else {
            F = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?&max"));
        }
    }
    if (thisUrl.indexOf("?q=") == -1 && thisUrl.indexOf(".html") == -1) {
        if (thisUrl.indexOf("/search/label/") == -1) {
            D = "page";
            if (C.indexOf("#PageNo=") != -1) {
                B = C.substring(C.indexOf("#PageNo=") + 8, C.length);
            } else {
                B = 1;
            }
            document.write("<script src=\"" + G + "feeds/posts/summary?max-results=1&alt=json-in-script&callback=hitungtotaldata\"></script>");
        } else {
            D = "label";
            if (thisUrl.indexOf("&max-results=") == -1) {
                posts = 20;
            }
            if (C.indexOf("#PageNo=") != -1) {
                B = C.substring(C.indexOf("#PageNo=") + 8, C.length);
            } else {
                B = 1;
            }
            document.write("<script src=\"" + G + "feeds/posts/summary/-/" + F + "?alt=json-in-script&callback=hitungtotaldata&max-results=1\" ></script>");
        }
    }
}

function redirectpage(numberpage) {
    jsonstart = (numberpage - 1) * posts;
    H = numberpage;
    var nBody = document.getElementsByTagName("head")[0];
    var newInclude = document.createElement("script");
    newInclude.type = "text/javascript";
    newInclude.setAttribute("src", G + "feeds/posts/summary?start-index=" + jsonstart + "&max-results=1&alt=json-in-script&callback=finddatepost");
    nBody.appendChild(newInclude);
}

function redirectlabel(numberpage) {
    jsonstart = (numberpage - 1) * posts;
    H = numberpage;
    var nBody = document.getElementsByTagName("head")[0];
    var newInclude = document.createElement("script");
    newInclude.type = "text/javascript";
    newInclude.setAttribute("src", G + "feeds/posts/summary/-/" + F + "?start-index=" + jsonstart + "&max-results=1&alt=json-in-script&callback=finddatepost");
    nBody.appendChild(newInclude);
}

function finddatepost(root) {
    post = root.feed.entry[0];
    var timestamp1 = post.published.$t.substring(0, 19) + post.published.$t.substring(23, 29);
    var timestamp = encodeURIComponent(timestamp1);
    if (D == "page") {
        var alamat = "/search?updated-max=" + timestamp + "&max-results=" + posts + "#PageNo=" + H;
    } else {
        var alamat = "/search/label/" + F + "?updated-max=" + timestamp + "&max-results=" + posts + "#PageNo=" + H;
    }
    location.href = alamat;
}(function ($) {
    $.fn.lavaLamp = function (o) {
        o = $.extend({
            fx: "backout",
            speed: 500,
            click: function () {}
        }, o || {});
        return this.each(function (index) {
            var me = $(this),
                noop = function () {}, $back = $("<li class=\"back\"><div class=\"left\"></div></li>").appendTo(me),
                $li = $(">li", this),
                curr = $("li.current-menu-ancestor, li.current-menu-item", this)[0] || $($li[0]).addClass("current-menu-ancestor current-menu-item")[0];
            $li.not(".back").hover(function () {
                move(this);
            }, noop);
            $(this).hover(noop, function () {
                move(curr);
            });
            $li.click(function (e) {
                setCurr(this);
                return o.click.apply(this, [e, this]);
            });
            setCurr(curr);

            function setCurr(el) {
                $back.css({
                    left: el.offsetLeft + "px",
                    width: el.offsetWidth + "px"
                });
                curr = el;
            }

            function move(el) {
                $back.each(function () {
                    $.dequeue(this, "fx");
                }).animate({
                    width: el.offsetWidth,
                    left: el.offsetLeft
                }, o.speed, o.fx);
            }
            if (index == 0) {
                $(window).resize(function () {
                    $back.css({
                        width: curr.offsetWidth,
                        left: curr.offsetLeft
                    });
                });
            }
        });
    };
})(jQuery);
jQuery.easing = {
    easein: function (x, t, b, c, d) {
        return c * (t /= d) * t + b;
    },
    easeinout: function (x, t, b, c, d) {
        if (t < d / 2) {
            return 2 * c * t * t / (d * d) + b;
        }
        var a = t - d / 2;
        return -2 * c * a * a / (d * d) + 2 * c * a / d + c / 2 + b;
    },
    easeout: function (x, t, b, c, d) {
        return -c * t * t / (d * d) + 2 * c * t / d + b;
    },
    expoin: function (x, t, b, c, d) {
        var a = 1;
        if (c < 0) {
            a *= -1;
            c *= -1;
        }
        return a * Math.exp(Math.log(c) / d * t) + b;
    },
    expoout: function (x, t, b, c, d) {
        var a = 1;
        if (c < 0) {
            a *= -1;
            c *= -1;
        }
        return a * (-Math.exp(-Math.log(c) / d * (t - d)) + c + 1) + b;
    },
    expoinout: function (x, t, b, c, d) {
        var a = 1;
        if (c < 0) {
            a *= -1;
            c *= -1;
        }
        if (t < d / 2) {
            return a * Math.exp(Math.log(c / 2) / (d / 2) * t) + b;
        }
        return a * (-Math.exp(-2 * Math.log(c / 2) / d * (t - d)) + c + 1) + b;
    },
    bouncein: function (x, t, b, c, d) {
        return c - jQuery.easing.bounceout(x, d - t, 0, c, d) + b;
    },
    bounceout: function (x, t, b, c, d) {
        if ((t /= d) < 0.36363636363636365) {
            return c * 7.5625 * t * t + b;
        } else if (t < 0.7272727272727273) {
            return c * (7.5625 * (t -= 0.5454545454545454) * t + 0.75) + b;
        } else if (t < 0.9090909090909091) {
            return c * (7.5625 * (t -= 0.8181818181818182) * t + 0.9375) + b;
        } else {
            return c * (7.5625 * (t -= 0.9545454545454546) * t + 0.984375) + b;
        }
    },
    bounceinout: function (x, t, b, c, d) {
        if (t < d / 2) {
            return jQuery.easing.bouncein(x, t * 2, 0, c, d) * 0.5 + b;
        }
        return jQuery.easing.bounceout(x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;
    },
    elasin: function (x, t, b, c, d) {
        var s = 1.70158;
        var p = 0;
        var a = c;
        if (t == 0) {
            return b;
        }
        if ((t /= d) == 1) {
            return b + c;
        }
        if (!p) {
            p = d * 0.3;
        }
        if (a < Math.abs(c)) {
            a = c;
            var s = p / 4;
        } else {
            var s = p / (2 * Math.PI) * Math.asin(c / a);
        }
        return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p)) + b;
    },
    elasout: function (x, t, b, c, d) {
        var s = 1.70158;
        var p = 0;
        var a = c;
        if (t == 0) {
            return b;
        }
        if ((t /= d) == 1) {
            return b + c;
        }
        if (!p) {
            p = d * 0.3;
        }
        if (a < Math.abs(c)) {
            a = c;
            var s = p / 4;
        } else {
            var s = p / (2 * Math.PI) * Math.asin(c / a);
        }
        return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * 2 * Math.PI / p) + c + b;
    },
    elasinout: function (x, t, b, c, d) {
        var s = 1.70158;
        var p = 0;
        var a = c;
        if (t == 0) {
            return b;
        }
        if ((t /= d / 2) == 2) {
            return b + c;
        }
        if (!p) {
            p = d * 0.3 * 1.5;
        }
        if (a < Math.abs(c)) {
            a = c;
            var s = p / 4;
        } else {
            var s = p / (2 * Math.PI) * Math.asin(c / a);
        } if (t < 1) {
            return -0.5 * a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p) + b;
        }
        return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p) * 0.5 + c + b;
    },
    backin: function (x, t, b, c, d) {
        var s = 1.70158;
        return c * (t /= d) * t * ((s + 1) * t - s) + b;
    },
    backout: function (x, t, b, c, d) {
        var s = 1.70158;
        return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
    },
    backinout: function (x, t, b, c, d) {
        var s = 1.70158;
        if ((t /= d / 2) < 1) {
            return c / 2 * t * t * (((s *= 1.525) + 1) * t - s) + b;
        }
        return c / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b;
    },
    linear: function (x, t, b, c, d) {
        return c * t / d + b;
    }
};
jQuery(function () {
    var $ = jQuery;
    $.fn.retarder = function (delay, method) {
        var node = this;
        if (node.length) {
            if (node[0]._timer_) {
                clearTimeout(node[0]._timer_);
            }
            node[0]._timer_ = setTimeout(function () {
                method(node);
            }, delay);
        }
        return this;
    };
    $("#smenu").addClass("js-active");
    $("ul div", "#smenu").css("visibility", "hidden");
    $(".menu>li", "#smenu").hover(function () {
        var ul = $("div:first", this);
        if (ul.length) {
            if (!ul[0].hei) {
                ul[0].hei = ul.height();
            }
            ul.css({
                height: 20,
                overflow: "hidden"
            }).retarder(400, function (i) {
                i.css("visibility", "visible").animate({
                    height: ul[0].hei
                }, {
                    duration: 500,
                    complete: function () {
                        ul.css("overflow", "visible");
                    }
                });
            });
        }
    }, function () {
        var ul = $("div:first", this);
        if (ul.length) {
            var css = {
                visibility: "hidden",
                height: ul[0].hei
            };
            ul.stop().retarder(1, function (i) {
                i.css(css);
            });
        }
    });
    $("ul ul li", "#smenu").hover(function () {
        var ul = $("div:first", this);
        if (ul.length) {
            if (!ul[0].wid) {
                ul[0].wid = ul.width();
            }
            ul.css({
                width: 0,
                overflow: "hidden"
            }).retarder(100, function (i) {
                i.css("visibility", "visible").animate({
                    width: ul[0].wid
                }, {
                    duration: 500,
                    complete: function () {
                        ul.css("overflow", "visible");
                    }
                });
            });
        }
    }, function () {
        var ul = $("div:first", this);
        if (ul.length) {
            var css = {
                visibility: "hidden",
                width: ul[0].wid
            };
            ul.stop().retarder(1, function (i) {
                i.css(css);
            });
        }
    });
    var links = $(".menu>li>a, .menu>li>a span", "#smenu").css({
        background: "none"
    });
    $("#smenu ul.menu").lavaLamp({
        speed: 600
    });
    if ($.browser.msie && $.browser.version.substr(0, 1) == "6") {
        $("ul a span", "#smenu").css({
            color: "rgb(255,255,255)"
        }).hover(function () {
            $(this).animate({
                color: "rgb(7,179,225)"
            });
        }, function () {
            $(this).animate({
                color: "rgb(255,255,255)"
            });
        });
    } else {
        $("ul a span", "#smenu").css({
            color: "rgb(255,255,255)"
        }).hover(function () {
            $(this).animate({
                color: "rgb(7,179,225)"
            }, 500);
        }, function () {
            $(this).animate({
                color: "rgb(255,255,255)"
            }, 200);
        });
    }
});
jQuery.easing.jswing = jQuery.easing.swing;
jQuery.extend(jQuery.easing, {
    def: "easeOutQuad",
    swing: function (x, t, b, c, d) {
        return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
    },
    easeInQuad: function (x, t, b, c, d) {
        return c * (t /= d) * t + b;
    },
    easeOutQuad: function (x, t, b, c, d) {
        return -c * (t /= d) * (t - 2) + b;
    },
    easeInOutQuad: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) {
            return c / 2 * t * t + b;
        }
        return -c / 2 * (--t * (t - 2) - 1) + b;
    },
    easeInCubic: function (x, t, b, c, d) {
        return c * (t /= d) * t * t + b;
    },
    easeOutCubic: function (x, t, b, c, d) {
        return c * ((t = t / d - 1) * t * t + 1) + b;
    },
    easeInOutCubic: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) {
            return c / 2 * t * t * t + b;
        }
        return c / 2 * ((t -= 2) * t * t + 2) + b;
    },
    easeInQuart: function (x, t, b, c, d) {
        return c * (t /= d) * t * t * t + b;
    },
    easeOutQuart: function (x, t, b, c, d) {
        return -c * ((t = t / d - 1) * t * t * t - 1) + b;
    },
    easeInOutQuart: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) {
            return c / 2 * t * t * t * t + b;
        }
        return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
    },
    easeInQuint: function (x, t, b, c, d) {
        return c * (t /= d) * t * t * t * t + b;
    },
    easeOutQuint: function (x, t, b, c, d) {
        return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
    },
    easeInOutQuint: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) {
            return c / 2 * t * t * t * t * t + b;
        }
        return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
    },
    easeInSine: function (x, t, b, c, d) {
        return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
    },
    easeOutSine: function (x, t, b, c, d) {
        return c * Math.sin(t / d * (Math.PI / 2)) + b;
    },
    easeInOutSine: function (x, t, b, c, d) {
        return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
    },
    easeInExpo: function (x, t, b, c, d) {
        return t == 0 ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
    },
    easeOutExpo: function (x, t, b, c, d) {
        return t == d ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
    },
    easeInOutExpo: function (x, t, b, c, d) {
        if (t == 0) {
            return b;
        }
        if (t == d) {
            return b + c;
        }
        if ((t /= d / 2) < 1) {
            return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
        }
        return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
    },
    easeInCirc: function (x, t, b, c, d) {
        return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
    },
    easeOutCirc: function (x, t, b, c, d) {
        return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
    },
    easeInOutCirc: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) {
            return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
        }
        return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;
    },
    easeInElastic: function (x, t, b, c, d) {
        var s = 1.70158;
        var p = 0;
        var a = c;
        if (t == 0) {
            return b;
        }
        if ((t /= d) == 1) {
            return b + c;
        }
        if (!p) {
            p = d * 0.3;
        }
        if (a < Math.abs(c)) {
            a = c;
            var s = p / 4;
        } else {
            var s = p / (2 * Math.PI) * Math.asin(c / a);
        }
        return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p)) + b;
    },
    easeOutElastic: function (x, t, b, c, d) {
        var s = 1.70158;
        var p = 0;
        var a = c;
        if (t == 0) {
            return b;
        }
        if ((t /= d) == 1) {
            return b + c;
        }
        if (!p) {
            p = d * 0.3;
        }
        if (a < Math.abs(c)) {
            a = c;
            var s = p / 4;
        } else {
            var s = p / (2 * Math.PI) * Math.asin(c / a);
        }
        return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * 2 * Math.PI / p) + c + b;
    },
    easeInOutElastic: function (x, t, b, c, d) {
        var s = 1.70158;
        var p = 0;
        var a = c;
        if (t == 0) {
            return b;
        }
        if ((t /= d / 2) == 2) {
            return b + c;
        }
        if (!p) {
            p = d * 0.3 * 1.5;
        }
        if (a < Math.abs(c)) {
            a = c;
            var s = p / 4;
        } else {
            var s = p / (2 * Math.PI) * Math.asin(c / a);
        } if (t < 1) {
            return -0.5 * a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p) + b;
        }
        return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p) * 0.5 + c + b;
    },
    easeInBack: function (x, t, b, c, d, s) {
        if (s == undefined) {
            s = 1.70158;
        }
        return c * (t /= d) * t * ((s + 1) * t - s) + b;
    },
    easeOutBack: function (x, t, b, c, d, s) {
        if (s == undefined) {
            s = 1.70158;
        }
        return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
    },
    easeInOutBack: function (x, t, b, c, d, s) {
        if (s == undefined) {
            s = 1.70158;
        }
        if ((t /= d / 2) < 1) {
            return c / 2 * t * t * (((s *= 1.525) + 1) * t - s) + b;
        }
        return c / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b;
    },
    easeInBounce: function (x, t, b, c, d) {
        return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b;
    },
    easeOutBounce: function (x, t, b, c, d) {
        if ((t /= d) < 0.36363636363636365) {
            return c * 7.5625 * t * t + b;
        } else if (t < 0.7272727272727273) {
            return c * (7.5625 * (t -= 0.5454545454545454) * t + 0.75) + b;
        } else if (t < 0.9090909090909091) {
            return c * (7.5625 * (t -= 0.8181818181818182) * t + 0.9375) + b;
        } else {
            return c * (7.5625 * (t -= 0.9545454545454546) * t + 0.984375) + b;
        }
    },
    easeInOutBounce: function (x, t, b, c, d) {
        if (t < d / 2) {
            return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * 0.5 + b;
        }
        return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;
    }
});
(function ($) {
    var NivoSlider = function (element, options) {
        var settings = $.extend({}, $.fn.nivoSlider.defaults, options);
        var vars = {
            currentSlide: 0,
            currentImage: "",
            totalSlides: 0,
            randAnim: "",
            running: false,
            paused: false,
            stop: false
        };
        var slider = $(element);
        slider.data("nivo:vars", vars);
        slider.css("position", "relative");
        slider.addClass("nivoSlider");
        var kids = slider.children();
        kids.each(function () {
            var child = $(this);
            var link = "";
            if (!child.is("img")) {
                if (child.is("a")) {
                    child.addClass("nivo-imageLink");
                    link = child;
                }
                child = child.find("img:first");
            }
            var childWidth = child.width();
            if (childWidth == 0) {
                childWidth = child.attr("width");
            }
            var childHeight = child.height();
            if (childHeight == 0) {
                childHeight = child.attr("height");
            }
            if (childWidth > slider.width()) {
                slider.width(childWidth);
            }
            if (childHeight > slider.height()) {
                slider.height(childHeight);
            }
            if (link != "") {
                link.css("display", "none");
            }
            child.css("display", "none");
            vars.totalSlides++;
        });
        if (settings.startSlide > 0) {
            if (settings.startSlide >= vars.totalSlides) {
                settings.startSlide = vars.totalSlides - 1;
            }
            vars.currentSlide = settings.startSlide;
        }
        if ($(kids[vars.currentSlide]).is("img")) {
            vars.currentImage = $(kids[vars.currentSlide]);
        } else {
            vars.currentImage = $(kids[vars.currentSlide]).find("img:first");
        } if ($(kids[vars.currentSlide]).is("a")) {
            $(kids[vars.currentSlide]).css("display", "block");
        }
        slider.css("background", "url(\"" + vars.currentImage.attr("src") + "\") no-repeat");
        slider.append($("<div class=\"nivo-caption\"><p></p></div>").css({
            display: "none",
            opacity: settings.captionOpacity
        }));
        var processCaption = function (settings) {
            var nivoCaption = $(".nivo-caption", slider);
            if (vars.currentImage.attr("title") != "" && vars.currentImage.attr("title") != undefined) {
                var title = vars.currentImage.attr("title");
                if (title.substr(0, 1) == "#") {
                    title = $(title).html();
                }
                if (nivoCaption.css("display") == "block") {
                    nivoCaption.find("p").fadeOut(settings.animSpeed, function () {
                        $(this).html(title);
                        $(this).fadeIn(settings.animSpeed);
                        settings.customChange.call(this);
                    });
                } else {
                    nivoCaption.find("p").html(title);
                }
                nivoCaption.fadeIn(settings.animSpeed);
            } else {
                nivoCaption.fadeOut(settings.animSpeed);
            }
            settings.customChange.call(this);
        };
        processCaption(settings);
        var timer = 0;
        if (!settings.manualAdvance && kids.length > 1) {
            timer = setInterval(function () {
                nivoRun(slider, kids, settings, false);
            }, settings.pauseTime);
        }
        if (settings.directionNav) {
            slider.append("<div class=\"nivo-directionNav\"><a class=\"nivo-prevNav\">" + settings.prevText + "</a><a class=\"nivo-nextNav\">" + settings.nextText + "</a></div>");
            if (settings.directionNavHide) {
                $(".nivo-directionNav", slider).hide();
                slider.hover(function () {
                    $(".nivo-directionNav", slider).show();
                }, function () {
                    $(".nivo-directionNav", slider).hide();
                });
            }
            $("a.nivo-prevNav", slider).live("click", function () {
                if (vars.running) {
                    return false;
                }
                clearInterval(timer);
                timer = "";
                vars.currentSlide -= 2;
                nivoRun(slider, kids, settings, "prev");
            });
            $("a.nivo-nextNav", slider).live("click", function () {
                if (vars.running) {
                    return false;
                }
                clearInterval(timer);
                timer = "";
                nivoRun(slider, kids, settings, "next");
            });
        }
        if (settings.controlNav) {
            var nivoControl = $("<div class=\"nivo-controlNav\"></div>");
            slider.append(nivoControl);
            for (var i = 0; i < kids.length; i++) {
                if (settings.controlNavThumbs) {
                    var child = kids.eq(i);
                    if (!child.is("img")) {
                        child = child.find("img:first");
                    }
                    if (settings.controlNavThumbsFromRel) {
                        nivoControl.append("<a class=\"nivo-control\" rel=\"" + i + "\"><img src=\"" + child.attr("rel") + "\" alt=\"\" /></a>");
                    } else {
                        nivoControl.append("<a class=\"nivo-control\" rel=\"" + i + "\"><img src=\"" + child.attr("src").replace(settings.controlNavThumbsSearch, settings.controlNavThumbsReplace) + "\" alt=\"\" /></a>");
                    }
                } else {
                    nivoControl.append("<a class=\"nivo-control\" rel=\"" + i + "\">" + (i + 1) + "</a>");
                }
            }
            $(".nivo-controlNav a:eq(" + vars.currentSlide + ")", slider).addClass("active");
            $(".nivo-controlNav a", slider).live("click", function () {
                if (vars.running) {
                    return false;
                }
                if ($(this).hasClass("active")) {
                    return false;
                }
                clearInterval(timer);
                timer = "";
                slider.css("background", "url(\"" + vars.currentImage.attr("src") + "\") no-repeat");
                vars.currentSlide = $(this).attr("rel") - 1;
                nivoRun(slider, kids, settings, "control");
            });
        }
        if (settings.keyboardNav) {
            $(window).keypress(function (event) {
                if (event.keyCode == "37") {
                    if (vars.running) {
                        return false;
                    }
                    clearInterval(timer);
                    timer = "";
                    vars.currentSlide -= 2;
                    nivoRun(slider, kids, settings, "prev");
                }
                if (event.keyCode == "39") {
                    if (vars.running) {
                        return false;
                    }
                    clearInterval(timer);
                    timer = "";
                    nivoRun(slider, kids, settings, "next");
                }
            });
        }
        if (settings.pauseOnHover) {
            slider.hover(function () {
                vars.paused = true;
                clearInterval(timer);
                timer = "";
            }, function () {
                vars.paused = false;
                if (timer == "" && !settings.manualAdvance) {
                    timer = setInterval(function () {
                        nivoRun(slider, kids, settings, false);
                    }, settings.pauseTime);
                }
            });
        }
        slider.bind("nivo:animFinished", function () {
            vars.running = false;
            $(kids).each(function () {
                if ($(this).is("a")) {
                    $(this).css("display", "none");
                }
            });
            if ($(kids[vars.currentSlide]).is("a")) {
                $(kids[vars.currentSlide]).css("display", "block");
            }
            if (timer == "" && !vars.paused && !settings.manualAdvance) {
                timer = setInterval(function () {
                    nivoRun(slider, kids, settings, false);
                }, settings.pauseTime);
            }
            settings.afterChange.call(this);
        });
        var createSlices = function (slider, settings, vars) {
            for (var i = 0; i < settings.slices; i++) {
                var sliceWidth = Math.round(slider.width() / settings.slices);
                if (i == settings.slices - 1) {
                    slider.append($("<div class=\"nivo-slice\"></div>").css({
                        left: sliceWidth * i + "px",
                        width: slider.width() - sliceWidth * i + "px",
                        height: "0px",
                        opacity: "0",
                        background: "url(\"" + vars.currentImage.attr("src") + "\") no-repeat -" + (sliceWidth + i * sliceWidth - sliceWidth) + "px 0%"
                    }));
                } else {
                    slider.append($("<div class=\"nivo-slice\"></div>").css({
                        left: sliceWidth * i + "px",
                        width: sliceWidth + "px",
                        height: "0px",
                        opacity: "0",
                        background: "url(\"" + vars.currentImage.attr("src") + "\") no-repeat -" + (sliceWidth + i * sliceWidth - sliceWidth) + "px 0%"
                    }));
                }
            }
        };
        var createBoxes = function (slider, settings, vars) {
            var boxWidth = Math.round(slider.width() / settings.boxCols);
            var boxHeight = Math.round(slider.height() / settings.boxRows);
            for (var rows = 0; rows < settings.boxRows; rows++) {
                for (var cols = 0; cols < settings.boxCols; cols++) {
                    if (cols == settings.boxCols - 1) {
                        slider.append($("<div class=\"nivo-box\"></div>").css({
                            opacity: 0,
                            left: boxWidth * cols + "px",
                            top: boxHeight * rows + "px",
                            width: slider.width() - boxWidth * cols + "px",
                            height: boxHeight + "px",
                            background: "url(\"" + vars.currentImage.attr("src") + "\") no-repeat -" + (boxWidth + cols * boxWidth - boxWidth) + "px -" + (boxHeight + rows * boxHeight - boxHeight) + "px"
                        }));
                    } else {
                        slider.append($("<div class=\"nivo-box\"></div>").css({
                            opacity: 0,
                            left: boxWidth * cols + "px",
                            top: boxHeight * rows + "px",
                            width: boxWidth + "px",
                            height: boxHeight + "px",
                            background: "url(\"" + vars.currentImage.attr("src") + "\") no-repeat -" + (boxWidth + cols * boxWidth - boxWidth) + "px -" + (boxHeight + rows * boxHeight - boxHeight) + "px"
                        }));
                    }
                }
            }
        };
        var nivoRun = function (slider, kids, settings, nudge) {
            var vars = slider.data("nivo:vars");
            if (vars && vars.currentSlide == vars.totalSlides - 1) {
                settings.lastSlide.call(this);
            }
            if ((!vars || vars.stop) && !nudge) {
                return false;
            }
            settings.beforeChange.call(this);
            if (!nudge) {
                slider.css("background", "url(\"" + vars.currentImage.attr("src") + "\") no-repeat");
            } else {
                if (nudge == "prev") {
                    slider.css("background", "url(\"" + vars.currentImage.attr("src") + "\") no-repeat");
                }
                if (nudge == "next") {
                    slider.css("background", "url(\"" + vars.currentImage.attr("src") + "\") no-repeat");
                }
            }
            vars.currentSlide++;
            if (vars.currentSlide == vars.totalSlides) {
                vars.currentSlide = 0;
                settings.slideshowEnd.call(this);
            }
            if (vars.currentSlide < 0) {
                vars.currentSlide = vars.totalSlides - 1;
            }
            if ($(kids[vars.currentSlide]).is("img")) {
                vars.currentImage = $(kids[vars.currentSlide]);
            } else {
                vars.currentImage = $(kids[vars.currentSlide]).find("img:first");
            } if (settings.controlNav) {
                $(".nivo-controlNav a", slider).removeClass("active");
                $(".nivo-controlNav a:eq(" + vars.currentSlide + ")", slider).addClass("active");
            }
            processCaption(settings);
            $(".nivo-slice", slider).remove();
            $(".nivo-box", slider).remove();
            if (settings.effect == "random") {
                var anims = new Array("sliceDownRight", "sliceDownLeft", "sliceUpRight", "sliceUpLeft", "sliceUpDown", "sliceUpDownLeft", "fold", "fade", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow", "boxRainGrowReverse");
                vars.randAnim = anims[Math.floor(Math.random() * (anims.length + 1))];
                if (vars.randAnim == undefined) {
                    vars.randAnim = "fade";
                }
            }
            if (settings.effect.indexOf(",") != -1) {
                var anims = settings.effect.split(",");
                vars.randAnim = anims[Math.floor(Math.random() * anims.length)];
                if (vars.randAnim == undefined) {
                    vars.randAnim = "fade";
                }
            }
            vars.running = true;
            if (settings.effect == "sliceDown" || settings.effect == "sliceDownRight" || vars.randAnim == "sliceDownRight" || settings.effect == "sliceDownLeft" || vars.randAnim == "sliceDownLeft") {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                var slices = $(".nivo-slice", slider);
                if (settings.effect == "sliceDownLeft" || vars.randAnim == "sliceDownLeft") {
                    slices = $(".nivo-slice", slider)._reverse();
                }
                slices.each(function () {
                    var slice = $(this);
                    slice.css({
                        top: "0px"
                    });
                    if (i == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                height: "100%",
                                opacity: "1.0"
                            }, settings.animSpeed, "", function () {
                                slider.trigger("nivo:animFinished");
                            });
                        }, 100 + timeBuff);
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                height: "100%",
                                opacity: "1.0"
                            }, settings.animSpeed);
                        }, 100 + timeBuff);
                    }
                    timeBuff += 50;
                    i++;
                });
            } else if (settings.effect == "sliceUp" || settings.effect == "sliceUpRight" || vars.randAnim == "sliceUpRight" || settings.effect == "sliceUpLeft" || vars.randAnim == "sliceUpLeft") {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                var slices = $(".nivo-slice", slider);
                if (settings.effect == "sliceUpLeft" || vars.randAnim == "sliceUpLeft") {
                    slices = $(".nivo-slice", slider)._reverse();
                }
                slices.each(function () {
                    var slice = $(this);
                    slice.css({
                        bottom: "0px"
                    });
                    if (i == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                height: "100%",
                                opacity: "1.0"
                            }, settings.animSpeed, "", function () {
                                slider.trigger("nivo:animFinished");
                            });
                        }, 100 + timeBuff);
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                height: "100%",
                                opacity: "1.0"
                            }, settings.animSpeed);
                        }, 100 + timeBuff);
                    }
                    timeBuff += 50;
                    i++;
                });
            } else if (settings.effect == "sliceUpDown" || settings.effect == "sliceUpDownRight" || vars.randAnim == "sliceUpDown" || settings.effect == "sliceUpDownLeft" || vars.randAnim == "sliceUpDownLeft") {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                var v = 0;
                var slices = $(".nivo-slice", slider);
                if (settings.effect == "sliceUpDownLeft" || vars.randAnim == "sliceUpDownLeft") {
                    slices = $(".nivo-slice", slider)._reverse();
                }
                slices.each(function () {
                    var slice = $(this);
                    if (i == 0) {
                        slice.css("top", "0px");
                        i++;
                    } else {
                        slice.css("bottom", "0px");
                        i = 0;
                    } if (v == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                height: "100%",
                                opacity: "1.0"
                            }, settings.animSpeed, "", function () {
                                slider.trigger("nivo:animFinished");
                            });
                        }, 100 + timeBuff);
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                height: "100%",
                                opacity: "1.0"
                            }, settings.animSpeed);
                        }, 100 + timeBuff);
                    }
                    timeBuff += 50;
                    v++;
                });
            } else if (settings.effect == "fold" || vars.randAnim == "fold") {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                $(".nivo-slice", slider).each(function () {
                    var slice = $(this);
                    var origWidth = slice.width();
                    slice.css({
                        top: "0px",
                        height: "100%",
                        width: "0px"
                    });
                    if (i == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                width: origWidth,
                                opacity: "1.0"
                            }, settings.animSpeed, "", function () {
                                slider.trigger("nivo:animFinished");
                            });
                        }, 100 + timeBuff);
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                width: origWidth,
                                opacity: "1.0"
                            }, settings.animSpeed);
                        }, 100 + timeBuff);
                    }
                    timeBuff += 50;
                    i++;
                });
            } else if (settings.effect == "fade" || vars.randAnim == "fade") {
                createSlices(slider, settings, vars);
                var firstSlice = $(".nivo-slice:first", slider);
                firstSlice.css({
                    height: "100%",
                    width: slider.width() + "px"
                });
                firstSlice.animate({
                    opacity: "1.0"
                }, settings.animSpeed * 2, "", function () {
                    slider.trigger("nivo:animFinished");
                });
            } else if (settings.effect == "slideInRight" || vars.randAnim == "slideInRight") {
                createSlices(slider, settings, vars);
                var firstSlice = $(".nivo-slice:first", slider);
                firstSlice.css({
                    height: "100%",
                    width: "0px",
                    opacity: "1"
                });
                firstSlice.animate({
                    width: slider.width() + "px"
                }, settings.animSpeed * 2, "", function () {
                    slider.trigger("nivo:animFinished");
                });
            } else if (settings.effect == "slideInLeft" || vars.randAnim == "slideInLeft") {
                createSlices(slider, settings, vars);
                var firstSlice = $(".nivo-slice:first", slider);
                firstSlice.css({
                    height: "100%",
                    width: "0px",
                    opacity: "1",
                    left: "",
                    right: "0px"
                });
                firstSlice.animate({
                    width: slider.width() + "px"
                }, settings.animSpeed * 2, "", function () {
                    firstSlice.css({
                        left: "0px",
                        right: ""
                    });
                    slider.trigger("nivo:animFinished");
                });
            } else if (settings.effect == "boxRandom" || vars.randAnim == "boxRandom") {
                createBoxes(slider, settings, vars);
                var totalBoxes = settings.boxCols * settings.boxRows;
                var i = 0;
                var timeBuff = 0;
                var boxes = shuffle($(".nivo-box", slider));
                boxes.each(function () {
                    var box = $(this);
                    if (i == totalBoxes - 1) {
                        setTimeout(function () {
                            box.animate({
                                opacity: "1"
                            }, settings.animSpeed, "", function () {
                                slider.trigger("nivo:animFinished");
                            });
                        }, 100 + timeBuff);
                    } else {
                        setTimeout(function () {
                            box.animate({
                                opacity: "1"
                            }, settings.animSpeed);
                        }, 100 + timeBuff);
                    }
                    timeBuff += 20;
                    i++;
                });
            } else if (settings.effect == "boxRain" || vars.randAnim == "boxRain" || settings.effect == "boxRainReverse" || vars.randAnim == "boxRainReverse" || settings.effect == "boxRainGrow" || vars.randAnim == "boxRainGrow" || settings.effect == "boxRainGrowReverse" || vars.randAnim == "boxRainGrowReverse") {
                createBoxes(slider, settings, vars);
                var totalBoxes = settings.boxCols * settings.boxRows;
                var i = 0;
                var timeBuff = 0;
                var rowIndex = 0;
                var colIndex = 0;
                var box2Darr = new Array;
                box2Darr[rowIndex] = new Array;
                var boxes = $(".nivo-box", slider);
                if (settings.effect == "boxRainReverse" || vars.randAnim == "boxRainReverse" || settings.effect == "boxRainGrowReverse" || vars.randAnim == "boxRainGrowReverse") {
                    boxes = $(".nivo-box", slider)._reverse();
                }
                boxes.each(function () {
                    box2Darr[rowIndex][colIndex] = $(this);
                    colIndex++;
                    if (colIndex == settings.boxCols) {
                        rowIndex++;
                        colIndex = 0;
                        box2Darr[rowIndex] = new Array;
                    }
                });
                for (var cols = 0; cols < settings.boxCols * 2; cols++) {
                    var prevCol = cols;
                    for (var rows = 0; rows < settings.boxRows; rows++) {
                        if (prevCol >= 0 && prevCol < settings.boxCols) {
                            (function (row, col, time, i, totalBoxes) {
                                var box = $(box2Darr[row][col]);
                                var w = box.width();
                                var h = box.height();
                                if (settings.effect == "boxRainGrow" || vars.randAnim == "boxRainGrow" || settings.effect == "boxRainGrowReverse" || vars.randAnim == "boxRainGrowReverse") {
                                    box.width(0).height(0);
                                }
                                if (i == totalBoxes - 1) {
                                    setTimeout(function () {
                                        box.animate({
                                            opacity: "1",
                                            width: w,
                                            height: h
                                        }, settings.animSpeed / 1.3, "", function () {
                                            slider.trigger("nivo:animFinished");
                                        });
                                    }, 100 + time);
                                } else {
                                    setTimeout(function () {
                                        box.animate({
                                            opacity: "1",
                                            width: w,
                                            height: h
                                        }, settings.animSpeed / 1.3);
                                    }, 100 + time);
                                }
                            })(rows, prevCol, timeBuff, i, totalBoxes);
                            i++;
                        }
                        prevCol--;
                    }
                    timeBuff += 100;
                }
            }
        };
        var shuffle = function (arr) {
            for (var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x) {}
            return arr;
        };
        var trace = function (msg) {
            if (this.console && typeof console.log != "undefined") {
                console.log(msg);
            }
        };
        this.stop = function () {
            if (!$(element).data("nivo:vars").stop) {
                $(element).data("nivo:vars").stop = true;
                trace("Stop Slider");
            }
        };
        this.start = function () {
            if ($(element).data("nivo:vars").stop) {
                $(element).data("nivo:vars").stop = false;
                trace("Start Slider");
            }
        };
        settings.afterLoad.call(this);
        return this;
    };
    $.fn.nivoSlider = function (options) {
        return this.each(function (key, value) {
            var element = $(this);
            if (element.data("nivoslider")) {
                return element.data("nivoslider");
            }
            var nivoslider = new NivoSlider(this, options);
            element.data("nivoslider", nivoslider);
        });
    };
    $.fn.nivoSlider.defaults = {
        effect: "random",
        slices: 15,
        boxCols: 8,
        boxRows: 4,
        animSpeed: 500,
        pauseTime: 3000,
        startSlide: 0,
        directionNav: true,
        directionNavHide: true,
        controlNav: true,
        controlNavThumbs: false,
        controlNavThumbsFromRel: false,
        controlNavThumbsSearch: ".jpg",
        controlNavThumbsReplace: "_thumb.jpg",
        keyboardNav: true,
        pauseOnHover: true,
        manualAdvance: false,
        captionOpacity: 0.8,
        prevText: "Prev",
        nextText: "Next",
        beforeChange: function () {},
        afterChange: function () {},
        slideshowEnd: function () {},
        lastSlide: function () {},
        afterLoad: function () {}
    };
    $.fn._reverse = [].reverse;
})(jQuery);
/*if ($("#copyright").length) {
    $("<a class=\"copyrighted\" style=\"text-decoration: none;overflow: visible !important; text-indent: 0 !important; display: inline !important; position: relative !important; visibility: visible !important; z-index: 9999 !important; font-size: 11px !important; color: #cccccc !important;\" href=\"http://www.soratemplates.com\">. Template by <span style=\"display: inline;text-decoration: underline !important;padding: 0\">SoraTemplates</span></a>").insertAfter("#copyright");
}
if ($(".copyrighted").is(":hidden")) {
    document.location.href = "http://www.soratemplates.com";
}*/
jQuery(document).ready(function ($) {
    var header = $("#head_slider");
    var slider = $("#slide");
    var sl1 = $("#slider-wrap");
    var nivocheck = false;

    function startnivo() {
        if (nivocheck == false) {
            slider.nivoSlider({
                effect: "random",
                slices: 10,
                boxCols: 8,
                boxRows: 4,
                animSpeed: 600,
                pauseTime: 3000,
                startSlide: 0,
                directionNav: true,
                directionNavHide: true,
                controlNav: true,
                keyboardNav: true,
                pauseOnHover: true,
                manualAdvance: false,
                captionOpacity: 0.7,
                prevText: "Prev",
                nextText: "Next",
                beforeChange: function () {},
                afterChange: function () {},
                slideshowEnd: function () {},
                lastSlide: function () {},
                afterLoad: function () {},
                customChange: function () {
                    Cufon.replace(".nivo-caption");
                }
            });
            nivocheck = true;
        }
    }
    var sliderarrow = $("#slider_arrow");
    startnivo();
    sliderarrow.removeClass("arrow_down").addClass("arrow_up");
    sliderarrow.click(function () {
        if ($(this).hasClass("arrow_up")) {
            sl1.fadeOut(600);
            slider.fadeOut(600);
            header.animate({
                height: "73"
            }, 600, function () {
                $("#slide").data("nivo:vars").stop = true;
                sliderarrow.removeClass("arrow_up").addClass("arrow_down");
            });
        } else {
            startnivo();
            sl1.fadeIn(600);
            slider.fadeIn(600);
            header.animate({
                height: "370"
            }, 600, function () {
                $("#slide").data("nivo:vars").stop = false;
                sliderarrow.removeClass("arrow_down").addClass("arrow_up");
            });
        }
    });
    sliderarrow.hover(function () {
        $(this).animate({
            top: "-33px"
        }, 300);
    }, function () {
        $(this).animate({
            top: "-33px"
        }, 100);
    });
    $(".sidebar .widget").wrap("<div class=\"widget_box\"></div>");
    $(".sidebar h2,.column h2").wrapInner("<div><span></span></div>");
    $("#credit").remove();
    $(document).ready(function () {
        $(".btn-slide").click(function () {
            $("#hidepanel").slideToggle("slow");
            $(this).toggleClass("active");
            return false;
        });
        $("#facebook, #twitter, #googleplus, #flickr, #linkedin, #dribble, #forrst, #behance, #digg, #youtube, #rss").append("<span class=\"hover\"></span>").each(function () {
            var $span = $("> span.hover", this).css("opacity", 0);
            $(this).hover(function () {
                $span.stop().fadeTo(500, 1);
            }, function () {
                $span.stop().fadeTo(500, 0);
            });
        });
        $("a[href=#top]").click(function () {
            $("html, body").animate({
                scrollTop: 0
            }, "slow");
            return false;
        });
        $(".roundboxcorner").corner("5px");
    });
});
Cufon.now();
Cufon.replace("h1, h2, h3, h4, h5", {
    hover: {
        color: "#29b4e9",
        textShadow: "1px 1px #000"
    },
    color: "#118eb7",
    textShadow: "1px 1px #000"
});
Cufon.replace(".inside_title h2,.post-author-title h2", {
    color: "#cccccc",
    textShadow: "1px 1px #000"
});
Cufon.replace(".comment-author", {
    color: "#118eb7",
    textShadow: "1px 1px #000"
});
Cufon.replace("#topmiddlebox h1", {
    color: "#678093",
    textShadow: "1px 1px #ffffff"
});
Cufon.replace(".h1col_txtbox h2", {
    color: "#17698b",
    textShadow: "1px 1px #8de8ff"
});
Cufon.replace(".theme-default .nivo-caption p", {
    color: "#3d3d3d",
    textShadow: "1px 1px #fff"
});
Cufon.replace("div.anythingSlider ul li div.caption-bottom", {
    color: "#3d3d3d",
    textShadow: "1px 1px #fff"
});
Cufon.replace("div#smenu a", {
    hover: {
        color: "#fff",
        textShadow: "1px 1px #000"
    },
    color: "#eeeeee",
    textShadow: "1px 1px #000"
});
Cufon.replace(".widget_title span, .widget_title_right span, .widget_title_right_but span, .footer_widg_title_r", {
    color: "#959595"
});
Cufon.replace("#PopularPosts1 a.bloglist_title", {
    hover: {
        color: "#29b4e9",
        textShadow: "1px 1px #000"
    },
    color: "#217da0",
    textShadow: "1px 1px #000",
    lineHeight: "20px"
});
Cufon.replace(".main_title_light_left div span, .main_title_light_right div span", {
    color: "#fff",
    textShadow: " #062c42 1px 1px"
});
$.noConflict();